cmake_minimum_required(VERSION 3.10)
project(test)

find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

 
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
 
add_executable(test test.cpp)
 
target_link_libraries (test ${PCL_LIBRARIES})
target_link_libraries(test ${OpenCV_LIBS})
install(TARGETS test RUNTIME DESTINATION bin)
 
